<template>
  <div class="page_cart" id="cart_index">
    <div class="warp">
      <div class="container">
        <div class="row">
          <div class="col">
            <div class="card">
              <list_cart :list="list"></list_cart>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import mixin from "../../mixins/page.js";
import list_cart from "../../components/diy/list_cart.vue";
export default {
  mixins: [mixin],
  components: {
    list_cart,
  },
  data() {
    return {
      url_get_list: "~/api/cart/get_list?",
      list: [],
      query: {
        page: 1,
        size: 10,
      },
    };
  },
  methods: {
    get_list_after(json) {
      return json.result.list.map((o) => {
        o.selected = false;
      });
    },
  },
};
</script>

<style scoped>
.page_cart {
  max-width: 1200px;
  margin: 0 auto;
}
.container{
  min-height: 600px;
}
.card{
  padding: 5px;
}
</style>

